package com.cq.hd.product.api.dto;

import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class ActiveRedPacketSonDto implements Serializable {

    @ApiModelProperty(value = "红包id")
    private Long id;

    @ApiModelProperty(value = "活动id")
    private Long activeId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "活动标题")
    private String activeTitle;

    @ApiModelProperty(value = "新人首单红包金额")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal firstRedPacketAmt;

    @ApiModelProperty(value = "红包数量")
    private Integer redPacketNum;

    @ApiModelProperty(value = "剩余红包总数")
    private Integer remainNum;

    @ApiModelProperty(value = "红包有效期(领取后几天内有效)")
    private Integer validDay;

    @ApiModelProperty(value = "领取红包状态：1-未领取，2-未使用，3-已使用(已过期)，4-已失效")
    private Integer receiveState = 1;

}
